package com.extend.test;

import java.util.Set;

public class AnnotationFactory extends AbsrtactorFactory {
	private AbsrtactorFactory parentFactory;
	
	public AnnotationFactory(AbsrtactorFactory parentFactory) {
		super();
		this.parentFactory = parentFactory;
	}

	@Override
	void load() {
		put("ann", "annBean");
	}

	@Override
	Object getBean(String key) {
		return null;
	}

	@Override
	public void put(String key, String value) {
		parentFactory.put(key, value);
	}

	@Override
	public String get(String key) {
		return parentFactory.get(key);
	}

	@Override
	public Set<String> Iterator() {
		return parentFactory.Iterator();
	}
	
}
